package com.xrkj.miniprogram.server.entity.vo;

import java.io.Serializable;
import java.util.Date;

import core.validate.Rule;
import org.admin.entity.BaseDto;


import lombok.Data;
import lombok.experimental.Accessors;

@SuppressWarnings("deprecation")
@Data
@Accessors(chain = true)
public class RegistrationRequestVO  extends BaseDto<RegistrationRequestVO>{
    public RegistrationRequestVO(){
        addRule(new Rule[]{
                Rule.String("wxOpenid").length(28,"openID错误"),
                Rule.String("nickname").max(10,"名字超出长度").min(3,"名字过短"),
                Rule.String("groupName").max(20,"机构名过长").min(3,"机构名过短"),
                Rule.String("position").max(10,"职位填写过长").min(3,"职位填写过短"),
                Rule.String("reason").max(200,"申请理由过长")
        });
    }

    private Long id;
    private String wxOpenid;
    private String nickname;
    private String groupName;
    private String position;
    private String reason;

    @Override
    protected RegistrationRequestVO inst() {
        return this;
    }
}
